{extend name="admin/public:layout" /}
{block name="title"}会议管理{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('index')}"> 会议管理</a></li>
                <li class="active">编辑会议</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">会议名称</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入会议名称"
                               name="meeting_name" value="{$info.meeting_name}" datatype="*" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">绑定圈子</label>
                    <div class="col-sm-4">
                        <select class="form-control" name="circle_id">
                            <option>请选择绑定圈子</option>
                            {volist name="circle" id="vo"}
                            <option value="{$vo.circle_id}" {eq name="vo.circle_id" value="$info['circle_id']"}selected{/eq}>{$vo.circle_name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">会议摘要</label>
                    <div class="col-sm-8">
                        <textarea class="form-control" name="meeting_description" rows="5" placeholder="请输入会议信息摘要">{$info.meeting_description}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">会议回执单</label>
                    <div class="col-sm-10">
                        {:widget('common/Form/singleFile',['meeting_receipt',$info['meeting_receipt'],-2])}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">会议缩略图</label>
                    <div class="col-sm-10">
                        {:widget('common/Form/singleImg',['meeting_thumb',$info['meeting_thumb'],-2])}
                    </div>
                    <div class="col-sm-10 col-sm-offset-2">
                         <span style="font-size:12px;color:#989898;line-height:20px;">
                            用于会议列表展示，建议上传规格120*90px,72dpi。
                        </span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">会议展示焦点图</label>
                    <div class="col-sm-10">
                        {:widget('common/Form/moreImg',['meeting_focus',$info['meeting_focus'],-2])}
                    </div>
                    <div class="col-sm-10 col-sm-offset-2">
                         <span style="font-size:12px;color:#989898;line-height:20px;">
                            用于会议内容页面焦点展示，建议上传规格640*480px,72dpi,数量不大于5张。
                        </span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">会议地点</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入会议地点"
                               name="meeting_place" value="{$info.meeting_place}" datatype="*" />
                    </div>
                    <label class="col-sm-2 control-label Validform_label">预计参会人数</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入预计参会人数"
                               name="meeting_number" value="{$info.meeting_number}" datatype="n" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">会议开始时间</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control laydatetime" placeholder="请选择会议开始时间" name="start_time" value="{$info.start_time}" readonly />
                    </div>
                    <label class="col-sm-2 control-label Validform_label">会议结束时间</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control laydatetime" placeholder="请选择会议结束时间" name="end_time" value="{$info.end_time}" readonly />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">报名开始时间</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control laydatetime" placeholder="请选择报名开始时间" name="sign_start_time" value="{$info.sign_start_time}" readonly />
                    </div>
                    <label class="col-sm-2 control-label Validform_label">报名结束时间</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control laydatetime" placeholder="请选择报名结束时间" name="sign_end_time" value="{$info.sign_end_time}" readonly />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">会议主题词</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" placeholder="请输入会议主题关键词" name="meeting_describe" value="{$info.meeting_describe}" datatype="*" />
                        <p class="help-block">为方便归类检索，请输入会议主题,多个主题使用,隔开</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">主办单位</label>
                    <div class="col-sm-6">
                        <textarea class="form-control two" name="meeting_sponsor" rows="5" placeholder="一行一个单位名称">{$info.content.meeting_sponsor}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">承办单位</label>
                    <div class="col-sm-6">
                        <textarea class="form-control two" name="meeting_organizer" rows="5" placeholder="一行一个单位名称">{$info.content.meeting_organizer}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">参会流程</label>
                    <div class="col-sm-6">
                        <textarea class="form-control two" name="meeting_process" rows="8" placeholder="一行一个栏目">{$info.content.meeting_process}</textarea>
                    </div>
                    <div class="col-sm-4">
                        <p style="font-size:12px;line-height:20px;color:#989898;">
                            会议日程请按照如下格式进行填写：<br>
                            9/28|地点：主会场<br>
                            9:00|开场宣传片<br>
                            ######<br>
                            9/29|地点：第一商务会议室<br>
                            9:00|与会企业进行商务洽谈及合作协议签署<br>
                            每行一个日程安排，使用“|”分隔<br>
                            日程节点使用“######”并换行进行分隔。
                        </p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">会议内容</label>
                    <div class="col-sm-10">
                        {:widget('common/Form/ueditor',['meeting_content',html_out($info['content']['meeting_content']),$uid])}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">联系信息</label>
                    <div class="col-sm-10">
                        {:widget('common/Form/ueditor',['meeting_contact',html_out($info['content']['meeting_contact']),$uid])}
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary" type="button" id="btnSub">保存内容</button>
                        <a href="{:url('index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        iCheck();
        formatDate();
        ajaxSubForm('#btnSub');
    })
</script>
{/block}